The Linked-List library was created so as to give pleasure to programmers worldwide as they play with it till their heart's content. The lack of linked-list functions in C is quite astonishing, everybody needs and loves linked-lists so why didn't they add them? (answers on a postcard please...)
Anyway, included is a set of files to be included with your compiler to allow the usage of linked-lists. I have included the actual source code instead of libraries, etc, so that everybody with a C++ compiler may use them.
Last Minute Notes
===============
1: The Linklist.* files are not documented here. They are a templated version of the voidlist library, but are not finished and contain many bugs. Using these files is not recomended.
Packing List
===============
The files included in this package are
VoidList.CPP - The C++ code for the linked-list library
VoidList.H - The Header Filfe for the linked-list library
VoidCode.CPP - Some example code on how to use the linked-list library
LinkList.Txt - This File.
How to use the Linked-List Library
=================
To use the library is fairly simple. All you have to do is #include the linklist.h file and add the linklist.cpp file to your project list (if your compiler has a project list).
*Note voidlist.cpp is a C++ file and won't run on C compilers.
The linkcode.cpp file has some example source on how to use the library. It's all pretty self-explanitary. One thing to note... When creating/deleting entries, you have to allocate the memory yourself and call new/delete.
This code has been tested under Borland's Turbo C++ 3.0 for DOS. If it doesn't work on your compiler please contact me and I'll try and fix it.
How Linked-Lists work
=================
Basically a Linked-List is a structure which has pointers to other strucutres. You really don't need to know how it works, you've got the linklist library to take care of that for you :)
The liked list has a set of structures known as nodes. Each node contains a pointer to other nodes. To move around the list, you simply set the currently used node to the values of the pointers in the node.
About this product
=================
This product is supplied free of charge, however I would appreciate a credit in any work that this file is used in. If you register for future updates however (see register.txt), you will recieve the latest versions of this library as it is made availible, and much more.
If your are distributing this file, or uploading it to a BBS, please use the original, unaltered self-extracting archive the these files came in. Feel free to distribute this as much as you want, just as long as it's not altered in any way.
How to contact me
=================
Please send you money, postcards, error-reports, questions, etc. etc. to me:
E-Mail
======
Compuserve: 106053,1120
Internet: 106053.1120@compuserve.com
Snail-Mail
=========
Kevin Campbell
20 Leman Drive
Houston
Renfrewshire
Scotland
PA6 7LN
Legal Stuff (Just so you can't sue me <g>).
===========
Disclaimer:
The author (Kevin Campbell) specifically disclaims all warranties,
expressed or implied, including but not limited to implied warranties of
merchantability and fitness for a particular purpose with respect to defects
in the software and documentation.
In no event shall the author be liable for any loss of profit or damage,
including but not limited to special, incidental, or consequential damages.
All product names, trademarks and registered trademarks contained in this
document are the property of their respective holders.